<?php
    echo validation_errors("<li>", "</li>");
?>
<!-- Edit Form -->
<div class="formPanel02">
    <form id="input_form_edit" action="<?php echo base_url(); ?>admin_combo/user/edit/<?php echo $info_edit["u_id"]; ?>" method="post">
        <fieldset>
            <legend>Edit a user</legend>
            <table id="tbfrmaction">
                <tr>
                    <td>Level</td>
                    <td>
                        <?php callLevel($sl_level, $info_edit["level_id"]); ?>
                    </td>
                    <td>Tên đăng nhập</td>
                    <td>
                        <input type="text" id="txtUsername_id" name="txtUsername" size="30" class="required" 
                               value="<?php if(isset($info_edit)) echo $info_edit["u_username"]; ?>" />
                    </td>
                </tr>
                <tr>
                    <td>Mật khẩu</td>
                    <td><input type="password" id="txtPass_edit" name="txtPass" size="30" /></td>
                    <td>Xác nhận mật khẩu</td>
                    <td><input type="password" id="txtRePass_edit" name="txtRePass" size="30" equalTo="#txtPass_edit" /></td>
                </tr>
                <tr>
                    <td>Họ tên</td>
                    <td><input type="text" id="txtFullname_edit" name="txtFullname" size="30" class="required" 
                               value="<?php if(isset($info_edit)) echo $info_edit["u_fullname"]; ?>"/></td>
                    <td>Địa chỉ</td>
                    <td><input type="text" id="txtAddress_edit" name="txtAddress" size="30" class="required" 
                               value="<?php if(isset($info_edit)) echo $info_edit["u_address"]; ?>"/></td>
                </tr>
                <tr>
                    <td>Điện thoại</td>
                    <td><input type="text" id="txtPhone_edit" name="txtPhone" size="30" class="required digits" 
                               value="<?php if(isset($info_edit)) echo $info_edit["u_phone"]; ?>"/></td>
                    <td>Email</td>
                    <td><input type="text" id="txtEmail_edit" name="txtEmail" size="30" class="required email" 
                               value="<?php if(isset($info_edit)) echo $info_edit["u_email"]; ?>"/></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><input type="submit" id="btnSubmit_edit" class="button" name="ok" value="Cập Nhật" /></td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>